package com.manager.commons.basemanage.service;

import java.util.List;

import com.manager.BaseService;
import com.manager.commons.basemanage.dao.BaseManageDao;
import com.manager.commons.basemanage.struts.form.BaseDataForm;
import com.manager.commons.page.PageBean;

/**
 * 
 * Copyrights 1997-2008 西安协同时光软件有限公司<br />
 * 
 * Filename:BaseManageService.java<br />
 * 
 * Description:全部继承自BaseService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: peigen<br />
 * 
 * History: <br /> [ Author Date Version Content ]<br />
 * 					peigen 2008-07-29 V0.1 create <br />
 * 
 */
public class BaseManageService extends BaseService {
	
	//dao
	private BaseManageDao baseManageDao;
	
	
	/**
	 * 根据参数获取字典类型信息
	 * @param departmentForm
	 * @param pageBean
	 * @return List
	 */
	@SuppressWarnings("unchecked")
	public List selectBaseDataList(String nameType){
		return baseManageDao.selectBaseDataList(nameType);
	}
	
	
	public BaseManageDao getBaseManageDao() {
		return baseManageDao;
	}

	public void setBaseManageDao(BaseManageDao baseManageDao) {
		this.baseManageDao = baseManageDao;
	}
	public List searchBaseData(BaseDataForm baseDataForm,final PageBean pageBean){
		return baseManageDao.searchBaseData(baseDataForm, pageBean);
	}
	public Integer getAllCountBaseData(BaseDataForm baseDataForm){
		return baseManageDao.getAllCountBaseData(baseDataForm);
	}
	
}
